/*
 * Copyright (c) 2017 22420103@QQ.COM 版权所有
 *
 */

package com.lehe.dao;

import com.lehe.entry.AdminUserMappingDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类的相关描述
 *
 * @author 王丹
 * @since 2017-03-09
 */
@Mapper
public interface AdminUserMappingDao {

    List<AdminUserMappingDto> queryByAdminUserId(@Param("adminUserId") Long adminUserId);

    AdminUserMappingDto queryByUserId(@Param("userId") Long userId);

    Integer insertAdminUserMapping(AdminUserMappingDto adminUserMappingDto);

    Integer deleteByAdminUserId(Long adminUserId);

	Integer deleteByUserId(@Param("userId")Long userId);
}
